package reflect;

/**
 * @author wangyingjie
 * @date 2018年09月28日17:08:19
 * @remark 需要被代理的类
 */
public class SuperPerson implements Person {
    @Override
    public void walk() {
        System.out.println("超人跑步");
    }

    @Override
    public void sayHello(String name) {
        System.out.println("超人叫熊二");
    }

    public static void main(String[] args) {
        Person person = (Person) SuperPersonFactory.getProxy();
        person.walk();
    }
}
